PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

SetCustomIconsEnabled

Enables or disables custom icons on a specified volume.

pascal OSErr SetCustomIconsEnabled(
                     SInt16 vRefNum,
                     Boolean enableCustomIcons);

vRefNum
A value of type SInt16 specifying the volume where custom icons are to be enabled or disabled.

enableCustomIcons
A value of type Boolean . If you pass true , custom icons are enabled on the volume specified. Passing false disables custom icons on the volume specified.

function result
A result code. See Icon Services Result Codes for a description of possible return values.
DISCUSSION
If you use the SetCustomIconsEnabled function to enable or disable custom icons, the setting remains in effect only as long as the specified volume remains mounted during the current session.


© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)